package com.tedu.review.test;

public abstract class 作业 {
    public abstract void eat();
    public abstract void sleep();

    public static void main(String[] args) {
        作业 a=new 作业(){
            public void eat(){
                System.out.println("吃");
            }
            public void sleep(){
                System.out.println("睡");
            }
        };
        a.eat();
        a.sleep();
    }
}
